package com.huaxiafinance.management.dto.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by huangwencheng on 2017/11/07.
 */
public class QueryGiftDto {
    //批次code名称
    private String codeName;
    //开始时间
    private String startTime;
    //结束时间
    private String endTime;
    //批次状态
    @NotNull(message = "批次状态不能为空")
    private Integer batchCode;

    private Date startDate;

    private Date endDate;

    private Date nowDate;

    @NotNull(message = "页数不能为空")
    private Integer page;

    @Min(value = 1, message = "分页最小行数为1")
    @Max(value = 50, message = "分页最大行数为50")
    private int rows;

    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(Integer batchCode) {
        this.batchCode = batchCode;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public Date getNowDate() {
        return nowDate;
    }

    public void setNowDate(Date nowDate) {
        this.nowDate = nowDate;
    }

    @Override
    public String toString() {
        return "QueryGiftDto{" +
                "codeName='" + codeName + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", batchCode=" + batchCode +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", nowDate=" + nowDate +
                ", page=" + page +
                ", rows=" + rows +
                '}';
    }
}
